import common from '@rollup/plugin-commonjs';
import resolve from '@rollup/plugin-node-resolve';
const basicName = 'promiseTransaction';
export default [
    {
        input: './src/index.js',

        output: {
            file: `./dist/${basicName}.esm.js`,
            format: 'es',
        },
    },
    {
        input: './src/index.js',
        output: {
            file: `./dist/${basicName}.common.cjs`,
            format: 'cjs',
            exports: 'default',
        },
    },
    {
        input: './src/index.js',
        output: {
            file: `./dist/${basicName}.browser.js`,
            format: 'esm',
        },
        plugins: [common(), resolve({ browser: true })],
    },
];
